// PanelReference.cpp : implementation file
//

#include "stdafx.h"
#include "UIEditor_CPP.h"
#include "PanelReference.h"
#include "afxdialogex.h"


// CPanelReference dialog

IMPLEMENT_DYNAMIC(CPanelReference, CDialog)

CPanelReference::CPanelReference(CWnd* pParent /*=NULL*/)
	: CDialog(CPanelReference::IDD, pParent)
{

}

CPanelReference::~CPanelReference()
{
}

void CPanelReference::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CPanelReference, CDialog)
	ON_WM_PAINT()
	ON_WM_CREATE()
	ON_WM_TIMER()
END_MESSAGE_MAP()


// CPanelReference message handlers


void CPanelReference::OnPaint()
{
	CPaintDC dc(this); // device context for painting
	
	CRect rt;
	GetClientRect(&rt);
	dc.Rectangle(rt);
}


int CPanelReference::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  Add your specialized creation code here
	this->SetTimer(10000, 1000/25, NULL);
	return 0;
}


void CPanelReference::OnTimer(UINT_PTR nIDEvent)
{
	// TODO: Add your message handler code here and/or call default
	if (GetFocus() == this)
	{
		;//TRACE(L"reference timer %x \n", this);
	}//else
		//TRACE(L"reference not timer %x \n", this);
	CDialog::OnTimer(nIDEvent);
}
